import request from '../util/request'

export let getWordList = () => request.get('/api/word')

//创建
export let createWord = params => request.post('/api/word',params);

//修改
export let updateWord = (params,id) => request.put(`/api/word/${id}`,params);

//获取指定知识库的所有文档
export let getWords = (id) => request.get(`/api/word/${id}`)